package com.lplb.api.admin.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.lplb.common.core.model.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 菜单表
 * </p>
 *
 * @author ws
 * @date 2020-07-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_admin_menu")
@ApiModel(value="AdminMenu对象", description="菜单表")
public class AdminMenu extends BaseEntity{

    private static final long serialVersionUID = 1L;
   /**
    * 菜单父id (自关联, 没有父级=0)
    */
    private String pid;
   /**
    * 菜单名称
    */
    private String name;
   /**
    * 菜单路由
    */
    private String url;
   /**
    * 菜单图标
    */
    private String icon;
   /**
    * 菜单排序
    */
    private Integer sort;
   /**
    * 菜单级别(目录级别(1，系统=顶部菜单||一级目录, 2、菜单  3、页面)
    */
    private Integer root;
   /**
    * 是否禁用( 0-正常 (默认)  1-禁用)
    */
    private Integer state;
}
